/*****************************************************************
**                                                             	**
**  Copyright (C) 2004 Amlogic,Inc.                            	**
**  All rights reserved                                        	**
**        Filename : aw_gui_app.c /Project:AVOS customer demo	** 
**        Revision : 1.0                                       	**
**                                                             	**
*****************************************************************/
#ifndef __AW_GUI_APP_H_
#define __AW_GUI_APP_H_

#include "../menu.h"
#include "user.h"

#define NO_APP_RUNNING           0x0
#define PIC_APP_RUNNING          0x1
#define VIDEO_APP_RUNNING        0x2
#define AUDIO_APP_RUNNING        0x3
#define HOTKEYENABLE 1
#if 1//def SUPPORT_VGA
#define WinStart_x 140
#define WinStart_y 140
#endif

typedef void (*FILESETCB)() ;
extern void MultiVolumeAutoRun(void);

void run_pic_only(char *MountPath);
void run_video_only(char *MountPath);
void run_audio_only(char *MountPath);

extern PHWND AWGetFileList(void);
extern void AWSetFileList(PHWND control, FILESETCB show_cb, FILESETCB hide_cb);
extern void AWShowFileList(INT8U flag);
extern void AWHideFileList(void);

INT32S AWGUISendNMMessage(INT32U media_type, INT16U msg_id, INT32U msg_value) ;
extern int
AWLoadVideoApp(int media_type, CMDSETRESULTHANDLE callback, char *file_name);
void auto_run_function(char *MountPath);

INT8U GetMuteStatus(void);

INT8U CloseMediaPlaybackApp(INT8U flag);
void SetMuteStatus(INT8U value);
INT8U NoVolumeControlWin();
INT8U IsWingpFocusWin() ;
INT8U CheckMediaPlaybackVideoApp(void);

#if HOTKEYENABLE
INT8U GUIHotKeyProcess(INT32U* last_hotkey, INT32U* iInputKey);
INT32U APPHotKeyProcess(INT32U* last_hotkey);
#endif
void AWRMQuitProcess(void);
INT8U Check_string_is_roll_file(void);
void FileListViewStringRollDelaySecond_file();
void HideWinMoviePlayBackControl();
void chip_power_on(int onoff /*0- off, 1- on*/);
INT32S display_multi_pic(void);

void disable_video_layer(void);
#ifdef ENABLE_NETWORK
#define NM_PREVIEW_READY	0x800
#endif

#endif //__AW_GUI_APP_H_
